package com.comtnt.springlearning.web.controller;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class IndexController {
    @RequestMapping("/index")
    public Map<String,Object> index(@RequestBody Map<String,Object> params, Model model){
        return params;
    }
}
